package org.chuan.hisports.service;

import org.chuan.hisports.entity.*;

import java.util.List;

public interface CoachService {
    List<CUList> selectApply(String uid);

    List<CUList> selectAll(String uid);

    CoachInfo selectByCid(String cid);

    List<CoachInfo> selectCoachAll();

    List<AdCoach> selectAdCoach();

    List<UserInfo> selectUserByCid(String cid);

    //查询教练账号是否存在
    boolean selectIsExsit(String phone);

    //插入账号,插入教练信息
    boolean insertCoach(String phone, String password);

    //教练登录
    CoachInfo login(String phone, String password);

    //教练增删改查会员的健身方案
    Scheme selectByUid(String uid);

    void insertToUid(String uid,
                     String walking,
                     String runing,
                     String training,
                     String bike);

    void updataScheme(String uid,
                      String walking,
                      String runing,
                      String training,
                      String bike);

    void updataInfo(String cid, String name, String able, String slogan,
                    String weight, String height, String tyear, String age);

    void updataPicture(String cid, String picture);
}
